package com.sm.dao;

import java.util.List;

import com.github.pagehelper.Page;
import com.sm.model.Activities;
import com.sm.model.UserActivities;
import org.apache.ibatis.annotations.Param;

public interface ActivitiesMapper {
    int deleteByPrimaryKey(Integer activitiesId);

    int insert(Activities record);

    int insertSelective(Activities record);

    Activities selectByPrimaryKey(Integer id);

    Activities selectActivitiesById(@Param("activitiesId") Integer activitiesId);

    int updateByPrimaryKeySelective(Activities record);

    int updateByPrimaryKey(Activities record);
    
   /* List<Activities> selectActivitiesNow();
    
    List<Activities> selectActivitiesBefore();*/

    //查询活动列表（开始时间倒叙）
    Page<Activities> getList();


    /**
     *	根据用户输入的搜索内容作为活动标题查询活动。
     * @param title		用户的输入的搜索内容作为的活动的标题
     * @return
     */
    Page<Activities> searchActivities(@Param("title")String title);
}